// 登录API服务
import request from '@/common/utils/request.js';
import { stringify } from 'querystring';

const BASE_URL = '/api/login';

// 登录
export const login = (data) => {
  return request({
    url: `${BASE_URL}/login`,
    method: 'POST',
    data: data
  });
};

// 注册
export const register = (data) => {
  return request({
    url: `${BASE_URL}/register`,
    method: 'POST',
    data: data
  });
};

// 忘记密码
export const forgetPassword = (data) => {
  return request({
    url: `${BASE_URL}/forgetPassword`,
    method: 'POST',
    data: data
  });
};
